﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessModel.ExpertGroup

@{
    ViewBag.Title = Model.Callsign;
}

<div id="m-title">
    <h2>评委组详细信息</h2>
    <div id="m-op">
        @Html.ActionLink("挑选评委", "ChooseExperts", "ExpertJudge", new { ExpertGroupID = Model.ID }, null)&#8195;
        @*@Html.ActionLink("创建评委", "Create", "ExpertJudge", new { ExpertGroupID = Model.ID }, null)&#8195;*@
        @Html.ActionLink("编辑评委组信息", "Edit", new { id = Model.ID }, new { @class="f-btn-long"}) &#8195;
        @Html.ActionLink("返回评委组列表", "Index", "ExpertGroup", new { activityID = Model.ActivityID }, new { @class = "f-btn-long" })
    </div>
</div>

<fieldset class="show">
    <div class="m-sd-xx m-sd-title">
        <div class="title">
            批量修改评委信息
        </div>
        <div class="sidebd">
            @using (Html.BeginForm("AddExpertJudges", "ExpertGroup", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
                //@Html.Hidden("expertGroupID", new {expertGroupID = Model.ID},null)
                <input id="expertGroupID" name="expertGroupID" type="hidden" value=@Model.ID />
                <div class="u-uf u-uf-pw"><input type="file" name="file" class="fileNew" id="fileNew" onchange="document.getElementById('textNew').value=this.value" /></div>
                <input type="text" name="textNew" id="textNew" class="u-it textNew" readonly="true" />
                <input type="button" class="u-btn btnNew" value="浏览" />
                <input type="submit" value="上传" class="u-btn" s />
            }
            &#8195;@Html.ActionLink(" 下载评委模版", "Download", "Home", new { filename = "expgroup.xlsx" }, new { @class = "u-btn-a f-btn-a f-btn-long" })
        </div>
    </div>
    <div class="m-sd-xx m-sd-title">
        <div class="title">
            评委信息显示
        </div>
        <div class="sidebd">
            <div class="editor-label">
                @*@Html.DisplayNameFor(model => model.Callsign)*@评委组名称：
                 @Html.DisplayFor(model => model.Callsign)
            </div>

            <div class="editor-label">
                @*@Html.DisplayNameFor(model => model.LeaderID)*@组长ID：
                @Html.DisplayFor(model => model.LeaderID)
            </div>
            <div>
                @Html.Partial("_ExpertJudgesPartial", Model.ExpertJudges.ToList().ToExpertJudgeModelList(Model.ActivityID), new ViewDataDictionary { { "ExpertGroupID", Model.ID }, { "ActivityID", Model.ActivityID } })
            </div>
        </div>
    </div>
            @*@{
                    var grid = new WebGrid(Model.ExpertJudges);
                }
                @grid.GetHtml(columns:grid.Columns(
                grid.Column("SerialNumber",header:"评委编号"),
                grid.Column("RealName",header:"真实姓名"),
                grid.Column("Gender",header:"性别"),
                grid.Column("Birthdate",header:"出生年月"),
                grid.Column("Phone",header:"电话")
                ))*@

</fieldset>

@*<table>
    <tr>
        <th>
            SerialNumber
        </th>
        <th>
            RealName
        </th>
    </tr>
    @foreach (var exp in Model.ExpertJudges)
    {
        <tr>
            <td>@exp.SerialNumber</td>
            <td>@exp.RealName</td>
        </tr>
    }
</table>*@

<script language="javascript">
    document.getElementsByTagName("table")[0].className = "oddTable";
    document.getElementsByTagName("table")[0].id = "showDetail";
</script>
